<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>查询书籍如下:</h1>
<table>
    <tr>
        <th>序号</th>
        <th>书名</th>
        <th>作者</th>
        <th>价格</th>
        <th>操作</th>
    </tr>
    <tr th:each="book, iterStat : ${BookList}">
        <td th:text="${iterStat.index + 1}">1</td>
        <td th:text="${book.BookName}">Book Name</td>
        <td th:text="${book.Author}">Author</td>
        <td th:text="${book.Price}">Price</td>
        <td>
            <!-- 通过表单发送删除请求 -->
            <form th:action="'/deleteBook/' + ${iterStat.index}" method="post">
                <input type="submit" value="删除" />
            </form>
        </td>
    </tr>
</table>
<a href="/add">>>>点击添加书籍<<<</a><br>
<a href="/search">>>>点击查询书籍<<<</a>
</body>
</html>
